Ext.define('Sencha.view.PhraseListView', {
    extend: 'Ext.NestedList',
    xtype: 'phraselistview',
    requires: ['Sencha.store.Phrases'],
    
    config: {
    		fullscreen: true,
          	title: 'Phrases',
          	store: 'Phrases',
            detailCard: {
            	xtype: 'dictionarysourcelistview',
            	scrollable: true
            },
            
            listeners: {
           		itemtap: function(nestedList, list, index, element, wall) {
           		
           			var detailCard = nestedList.getDetailCard();
           			
           			var sto = detailCard.getStore();
           			
           			sto.clearFilter();
           			
    
        
           			sto.filter('dictionaryTarget_id', '1');
           		
           			return detailCard;
          		}
            
            }
    }
});